package com.xunk.equipment.service.mandun.constant;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.equipment.service.ruying.mandun.constant
 * @ClassName: MandunConst
 * @Author: luanzhiwei
 * @Description: 曼顿设备使用常量
 * @Date: 2021/3/27 14:48
 * @Version: 1.0
 */
public class MandunConstant {
    /**
     * 编码
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 内容类型
     */
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String CONTENT_TYPE_TEXT = "text/plain";
    public static final String CONTENT_TYPE_JSON = "application/json";
    public static final String CONTENT_TYPE_URLENCODE = "application/x-www-form-urlencoded";
    public static final String RESPONSE_TYPE = "response_type";
    public static final String CODE = "code";
    public static final String ZERO = "0";
    public static final String TEN = "10";
    public static final String TWENTY = "20";
    public static final String MSG = "msg";
    public static final String MESSAGE = "message";
    public static final String CLIENT_ID = "client_id";
    public static final String CLIENT_SECRET = "client_secret";
    public static final String REDIRECT_URI = "redirect_uri";
    public static final String UNAME = "uname";
    public static final String PASSWD = "passwd";
    public static final String AUTHORIZATION_CODE = "authorization_code";
    public static final String GRANT_TYPE = "grant_type";
    public static final String GRANT_TYPE_REFRESH_TOKEN = "refresh_token";
    public static final String REFRESH_TOKEN = "refreshToken";//曼顿返回值的key
    public static final String ACCESS_TOKEN = "accessToken";//曼顿返回值的key
    public static final String REFRESH_TOKEN_REDIS_LOCK = "REFRESH_TOKEN_REDIS_LOCK";//刷新token redis锁的值
    public static final String SIGN = "sign";
    public static final String DATA = "data";

    /**
     * 冒号
     */
    public static final String COLON = ":";

    /**
     * 存放accesstoken的key
     */
    public static final String MANDUN_ACCESS_TOKEN = "MANDUN_ACCESS_TOKEN";
    /**
     * 曼顿设备节点信息缓存的key
     */
    public static final String MANDUN_FACILITY_PROPERTY = "MANDUN_FACILITY_PROPERTY";
    /**
     * 线路开关操作
     */
    public static final String OCSWITCH = "OCSWITCH";
    /**
     * 线路重命名操作
     */
    public static final String SWITCHSET = "SWITCHSET";
    /**
     * 存放refreshToken的key
     */
    public static final String MANDUN_REFRESH_TOKEN_KEY = "MANDUN_REFRESH_TOKEN";
    /**
     * 曼顿实时状态数据的key
     */
    public static final String MANDUN_REAL_TIME_KEY = "MANDUN_REAL_TIME:";
    /**
     * 项目编号
     */
    public static final String PROJECT_CODE = "projectCode";
    /**
     * 设备号
     */
    public static final String MAC = "mac";
    public static final String DEVICE_SN = "deviceSn";
    /**
     * 开始时间,yyyy-MM-dd HH:mm
     */
    public static final String START = "start";
    /**
     * 结束时间,yyyy-MM-dd HH:mm
     */
    public static final String END = "end";
    /**
     * 开始时间,yyyy-MM-dd HH:mm
     */
    public static final String START_TIME = "startTime";
    /**
     * 结束时间,yyyy-MM-dd HH:mm
     */
    public static final String END_TIME = "endTime";
    /**
     * 页记录大小
     */
    public static final String PAGE_SIZE = "pageSize";
    /**
     * 页码
     */
    public static final String PAGE = "page";
    /**
     * 类型
     */
    public static final String TYPE = "type";
    /**
     * false只包含告警产生；true包含告警产生、告警消除
     */
    public static final String INCLUDE_CALM = "includeCalm";
    /**
     * 命令
     */
    public static final String CMD = "cmd";
    /**
     * 命令 open close
     */
    public static final String VALUE1 = "value1";
    /**
     * 线路地址，是 获取设备开关状态接口返回的addr
     */
    public static final String VALUE2 = "value2";
    /**
     *
     */
    public static final String PUSH_TYPE = "pushType";
    /**
     * url
     */
    public static final String URL = "url";
    /**
     * 加密盐值
     */
    public static final String SALT = "salt";
    /**
     * 订阅消息，推送时间区间
     */
    public static final String TIME_RANGES = "timeRanges";
    /**
     * 是否推送
     */
    public static final String PUSH_ENABLE = "pushEnable";
    /**
     * 告警类型
     */
    public static final String TYPE_NUMBERS = "typeNumbers";
    /**
     *
     */
    public static final String PUSH_MODE = "pushMode";
    /**
     * 年
     */
    public static final String YEAR = "year";
    /**
     * 月
     */
    public static final String MONTH = "month";
    /**
     * 日
     */
    public static final String DAY = "day";
    /**
     * 小时
     */
    public static final String HOUR = "hour";
    /**
     * 设备节点
     */
    public static final String NODE_TYPE = "nodeType";
    /**
     * 节点类型COMM
     */
    public static final String COMM = "COMM";
    //曼顿接口列表
    /**
     * 获取项目信息接口
     */
    public static final String API_GET_PROJECT_INFO = "GET_PROJECT_INFO";
    /**
     * 获取项目内所有设备接口
     */
    public static final String API_GET_BOXES = "GET_BOXES";
    /**
     * 获取单个设备信息接口
     */
    public static final String API_GET_BOX = "GET_BOX";
    /**
     * 获取设备节点属性接口
     */
    public static final String API_GET_BOX_PROPERTIES = "GET_BOX_PROPERTIES";
    /**
     * 获取设备实时状态数据
     */
    public static final String API_GET_BOX_CHANNELS_REALTIME = "GET_BOX_CHANNELS_REALTIME";
    /**
     * 获取设备告警数据接口
     */
    public static final String API_GET_BOX_ALARM = "GET_BOX_ALARM";
    /**
     * 获取设备的开关信息接口
     */
    public static final String API_GET_BOX_CHANNELS_OC = "GET_BOX_CHANNELS_OC";
    /**
     * 调节设备实时数据上传频率接口
     */
    public static final String API_SET_BOX_REALTIME_RATE = "SET_BOX_REALTIME_RATE";
    /**
     * 获取设备的定时配置接口
     */
    public static final String API_GET_CFG_TIMER = "GET_CFG_TIMER";
    /**
     * 获取设备的漏电自检配置接口
     */
    public static final String API_GET_CFG_LKICHK = "GET_CFG_LKICHK";
    /**
     * 设备控制接口
     */
    public static final String API_PUT_BOX_CONTROL = "PUT_BOX_CONTROL";
    /**
     * 获取设备小时区间统计接口(电量、电流、电压、温度、漏电)
     */
    public static final String API_GET_BOXES_HOUR_STATS = "GET_BOXES_HOUR_STATS";
    /**
     * 获取设备日区间统计接口(电量、电流、电压、温度、漏电)
     */
    public static final String API_GET_BOXES_DAY_STATS = "GET_BOXES_DAY_STATS";
    /**
     * 获取设备月区间统计接口(电量、电流、电压、温度、漏电)
     */
    public static final String API_GET_BOXES_MON_STATS = "GET_BOXES_MON_STATS";
    /**
     * 获取设备在线轨迹记录接口（此接口目前仅支持查询近半年的设备在线轨迹）
     */
    public static final String API_GET_BOX_ONLINE_HISTORY = "GET_BOX_ONLINE_HISTORY";
    /**
     * 消息推送订阅管理接口
     */
    public static final String API_SUBSCRIBE_PUSH_SERVICE = "SUBSCRIBE_PUSH_SERVICE";


}
